decode handles GraphContainer with both data and errors